package com.ccnf.model.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ccnf.model.enums.ApplyStatusEnum;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 用户申请信息表
 * </p>
 *
 * @author developer
 * @since 2019-04-04
 */
@Data
@ApiModel(value="UserApply对象", description="用户申请信息表")
public class UserApply implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID", hidden = true)
    @JsonProperty("applyId")
    private Long id;

    @ApiModelProperty(value = "展会ID", hidden = true)
    @JsonIgnore
    private Long expoId;

    @ApiModelProperty(value = "用户ID", hidden = true)
    @JsonIgnore
    private Long userId;

    @ApiModelProperty(value = "申请信息")
    private String applyInfo;

    @ApiModelProperty(value = "申请状态（0：申请中，1：成功，2：失败，3：过期）", hidden = true)
    private ApplyStatusEnum applyStatus;

    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(hidden = true)
    private Long createTime;
}